<?php

/**
 * ordenesservicio form base class.
 *
 * @package    gescell
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BaseordenesservicioForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'id'            => new sfWidgetFormInputHidden(),
      'clientes_id'   => new sfWidgetFormPropelChoice(array('model' => 'clientes', 'add_empty' => false)),
      'sf_guard_user' => new sfWidgetFormPropelChoice(array('model' => 'sfGuardUser', 'add_empty' => false)),
      'presupuesto'   => new sfWidgetFormInput(),
      'fechaingreso'  => new sfWidgetFormDateTime(),
      'created_at'    => new sfWidgetFormDateTime(),
      'updated_at'    => new sfWidgetFormDateTime(),
    ));

    $this->setValidators(array(
      'id'            => new sfValidatorPropelChoice(array('model' => 'ordenesservicio', 'column' => 'id', 'required' => false)),
      'clientes_id'   => new sfValidatorPropelChoice(array('model' => 'clientes', 'column' => 'id')),
      'sf_guard_user' => new sfValidatorPropelChoice(array('model' => 'sfGuardUser', 'column' => 'id')),
      'presupuesto'   => new sfValidatorNumber(array('required' => false)),
      'fechaingreso'  => new sfValidatorDateTime(array('required' => false)),
      'created_at'    => new sfValidatorDateTime(array('required' => false)),
      'updated_at'    => new sfValidatorDateTime(array('required' => false)),
    ));

    $this->widgetSchema->setNameFormat('ordenesservicio[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'ordenesservicio';
  }


}
